package com.lianxi.hibernate.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * Date:2018/1/17 0017
 * 新闻表
 *
 * @author :liyunlong
 */
@Entity
@Table(name = "zw_news")
@ApiModel(value = "news", description = "新闻操作实体")
@Data
@Accessors(chain = true)
public class News implements Serializable {

    private static final long serialVersionUID = 6129122062453927639L;
    /**
     * 新闻id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty(name = "id", value = "新闻id")
    private int id;

    /**
     * 编辑id
     */
    @Column(name = "user_id", columnDefinition = "INT DEFAULT 0")
    @ApiModelProperty(value = "添加用户id", name = "userId", required = true)
    private int userId;
    /**
     * 新闻状态
     * 10初稿/50待审核/100已送签/150已签发/200草稿/250删除/500定时新闻
     */
    @Column(name = "status", columnDefinition = "INT DEFAULT 10")
    @ApiModelProperty(value = "新闻状态 10初稿/50待审核/100已送签/150已签发/200草稿/250删除/500定时新闻/600退回至原系统", name = "status")
    private int status;

    /**
     * 新闻恢复时用
     * 新闻删除时的状态
     * 10初稿/50待审核/100已送签/150已签发/200草稿/250删除/500定时新闻
     */
    @Column(name = "del_status", columnDefinition = "INT DEFAULT 0")
    @ApiModelProperty(value = "新闻状态 10初稿/50待审核/100已送签/150已签发/200草稿/250删除/500定时新闻", name = "status")
    private int delStatus = 0;

    /**
     * 新闻标题
     */
    @Column(name = "title")
    @ApiModelProperty(name = "title", value = "新闻标题", required = true)
    private String title = "";
    /**
     * 新闻副标题
     */
    @Column(name = "subtitle")
    @ApiModelProperty(name = "subtitle", value = "新闻副标题")
    private String subtitle = "";
    /**
     * 新闻摘要
     */

    @Lob
    @Basic(fetch = FetchType.EAGER)
    @Column(columnDefinition = "TEXT")
    @ApiModelProperty(name = "summary", value = "新闻内容", required = true)
    private String summary = "";
    /**
     * 创建时间
     */
    @Column(name = "create_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(name = "createDate", value = "创建时间")
    private Date createDate;
    /**
     * 成文时间
     */
    @Column(name = "write_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(name = "writeDate", value = "成文时间")
    private Date writeDate;
    /**
     * 发布时间
     */
    @Column(name = "pub_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(name = "pubDate", value = "发布时间")
    private Date pubDate;
    /**
     * 定时发送时间
     */
    @Column(name = "begin_task_time")
    @ApiModelProperty(name = "beginTaskTime", value = "定时发送时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date beginTaskTime;
    /**
     * 定时撤回时间
     */
    @Column(name = "end_task_time")
    @ApiModelProperty(name = "endTaskTime", value = "定时撤回时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTaskTime;
    /**
     * 新闻类型
     * 10(普通)/50(文件)/100(公报)
     */
    @Column(name = "type", columnDefinition = "INT DEFAULT 0")
    @ApiModelProperty(name = "type", value = "新闻类型")
    private int type;

    /**
     * 新闻权重 0--普通稿件 1--优先稿件 2--紧急稿件  3--置顶稿件
     */
    @Column(name = "news_weight", columnDefinition = "INT DEFAULT 0")
    @ApiModelProperty(name = "newsWeigh", value = "新闻权重")
    private int newsWeigh;
    /**
     * 文章字数
     */
    @Column(name = "content_number", columnDefinition = "INT DEFAULT 0")
    @ApiModelProperty(name = "contentNumber", value = "文章字数")
    private int contentNumber;
    /**
     * 站点id(站点唯一标识)
     */
    @Column(name = "site_id")
    @ApiModelProperty(name = "siteId", value = "站点id(站点唯一标识)", required = true)
    private String siteId;

    @Column(name = "site_name")
    @ApiModelProperty(name = "siteName", value = "站点名称(站点唯一标识)", required = true)
    private String siteName;

    /**
     * 栏目id(栏目唯一标识)
     */
    @Column(name = "channel_id", columnDefinition = "INT DEFAULT 0")
    @ApiModelProperty(name = "channelId", value = "栏目id(栏目唯一标识)", required = true)
    private int channelId;
    /**
     * 栏目名称
     */
    @Column(name = "channel_name")
    @ApiModelProperty(name = "channelName", value = "栏目名称")
    private String channelName = "";
    /**
     * 模板id(模板唯一标识)
     * 如果为0 则按照栏目的模板Id  如果栏目也为空 则按照站点的模板ID
     */
    @Column(name = "template_id", columnDefinition = "INT DEFAULT 0")
    @ApiModelProperty(name = "templateId", value = "栏目名称")
    private int templateId;
    /**
     * 来源
     */
    @Column(name = "source")
    @ApiModelProperty(name = "source", value = "来源")
    private String source = "";
    /**
     * 新闻原作者(填写)
     */
    @Column(name = "author")
    @ApiModelProperty(name = "author", value = "新闻原作者(填写)")
    private String author = "";
    /**
     * 关键字(多个英文,拼接)
     */
    @Column(name = "keyword")
    @ApiModelProperty(name = "keyword", value = "关键字(多个英文,拼接)")
    private String keyword = "";
    /**
     * 新闻外链
     */
    @Column(name = "out_url")
    @ApiModelProperty(name = "outUrl", value = "新闻外链")
    private String outUrl = "";
    /**
     * 自身Url
     */
    @Column(name = "self_url")
    @ApiModelProperty(name = "selfUrl", value = "自身Url")
    private String selfUrl = "";
    /**
     * 焦点图1
     */
    @Column(name = "focus_pic1")
    @ApiModelProperty(name = "focusPic1", value = "焦点图1")
    private String focusPic1 = "";
    /**
     * 焦点图2
     */
    @Column(name = "focus_pic2")
    @ApiModelProperty(name = "focusPic2", value = "焦点图2")
    private String focusPic2 = "";
    /**
     * 焦点图3
     */
    @Column(name = "focus_pic3")
    @ApiModelProperty(name = "focusPic3", value = "焦点图3")
    private String focusPic3 = "";
    /**
     * 签发人Id
     */
    @Column(name = "issuer_id", columnDefinition = "INT DEFAULT 0")
    @ApiModelProperty(name = "issuerId", value = "签发人Id")
    private int issuerId;
    /**
     * 签发人姓名
     */
    @Column(name = "issuer_name")
    @ApiModelProperty(name = "issuerName", value = "签发人姓名")
    private String issuerName = "";

    /**
     * 是否首页显示
     * 0 不显示 1显示
     */
    @Column(name = "show_status", columnDefinition = "TINYINT DEFAULT 0")
    @ApiModelProperty(name = "showStatus", value = "是否首页显示（0 不显示 1显示）")
    private int showStatus;
    /**
     * 是否显示标红
     * 0 不标红 1标红
     */
    @Column(name = "show_red", columnDefinition = "TINYINT DEFAULT 0")
    @ApiModelProperty(name = "showRed", value = "是否显示标红（0 不标红 1标红）")
    private int showRed;
    /**
     * 标题是否加粗
     * 0 不加粗  1 加粗
     */
    @Column(name = "show_bold", columnDefinition = "TINYINT DEFAULT 0")
    @ApiModelProperty(name = "showBold", value = "标题是否加粗（0 不加粗 加粗）")
    private int showBold;
    /**
     * 拖拽排序字段
     */
    @Column(name = "seq", columnDefinition = "INT DEFAULT 0")
    @ApiModelProperty(name = "seq", value = "拖拽排序字段")
    private int seq;
    /**
     * 索引号
     */
    @Column(name = "re_num")
    @ApiModelProperty(name = "reNum", value = "索引号")
    private String reNum = "";
    /**
     * 公开类型
     * 0(主动公开)/1(依申请公开)
     */
    @Column(name = "open_type", columnDefinition = "TINYINT DEFAULT 0")
    @ApiModelProperty(name = "openType", value = "公开类型 0(主动公开)/1(依申请公开)")
    private int openType;

    /**
     * 主题分类 走Xml
     */
    @Column(name = "theme_class", columnDefinition = "INT DEFAULT 0")
    @ApiModelProperty(name = "themeClass", value = "主题分类")
    private int themeClass = 0 ;

    /**
     * 主题分类名称
     */
    @Column(name = "theme_class_name")
    @ApiModelProperty(name = "themeClassName", value = "主题分类名称")
    private String themeClassName = "";

    /**
     * 公文种类
     */
    @Column(name = "doc_type", columnDefinition = "INT DEFAULT 0")
    @ApiModelProperty(name = "docType", value = "公文种类")
    private int docType=0;

    /**
     * 公文种类名称
     */
    @Column(name = "doc_type_name")
    @ApiModelProperty(name = "docTypeName", value = "公文种类名称")
    private String docTypeName = "";
    /**
     * 发文字号
     */
    @Column(name = "doc_num")
    @ApiModelProperty(name = "docNum", value = "发文字号")
    private String docNum = "";
    /**
     * 发文机关
     */
    @Column(name = "doc_agency")
    @ApiModelProperty(name = "docAgency", value = "发文机关")
    private String docAgency = "";
    /**
     * 主题词
     */
    @Column(name = "theme_word")
    @ApiModelProperty(name = "themeWord", value = "主题词")
    private String themeWord = "";
    /**
     * 是否是多签新闻
     * 0(否)/1(是)
     */
    @ApiModelProperty(name = "moreAudit", value = "是否是多签新闻 0(否)/1(是)")
    @Column(name = "more_audit", columnDefinition = "TINYINT DEFAULT 0")
    private int moreAudit;
    /**
     * 是否是克隆新闻
     * 0(否)/1(是)
     */
    @ApiModelProperty(name = "clone", value = "是否是克隆新闻 0(否)/1(是)")
    @Column(name = "clone", columnDefinition = "TINYINT DEFAULT 0")
    private int clone;
    /**
     * 是否显示到手机客户端
     * 0(否)/1(是)
     */
    @Column(name = "mobile", columnDefinition = "TINYINT DEFAULT 0")
    @ApiModelProperty(name = "mobile", value = "是否显示到手机客户端 0(否)/1(是)")
    private int mobile;
    /**
     * 视频地址
     */
    @Column(name = "video_url")
    @ApiModelProperty(name = "videoUrl", value = "视频地址")
    private String videoUrl = "";
    /**
     * 是否是退回稿件
     */
    @Column(name = "back_news", columnDefinition = "INT DEFAULT 0")
    @ApiModelProperty(name = "backNews", value = "是否是退回稿件")
    private int backNews;

    /**
     * 是否是上传上来的 或者是下达下来的
     * 0 什么都不是  1下达下来的  2是上传上来的
     */
    @Column(name = "up_down", columnDefinition = "TINYINT DEFAULT 0")
    private int updown;
    /**
     * 操作人用户Id
     */
    @Column(name = "operator_user_Id", columnDefinition = "INT DEFAULT 0")
    @ApiModelProperty(name = "operatorUserId", value = "操作人用户Id")
    private int operatorUserId;
    /**
     * 操作人姓名
     */
    @Column(name = "operator_name")
    @ApiModelProperty(name = "operatorName", value = "操作人姓名")
    private String operatorName = "";
    /**
     * 操作时间
     */
    @Column(name = "operator_date")
    @ApiModelProperty(name = "operatorDate", value = "操作时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date operatorDate;
    /**
     * 组织机构id
     */
    @Column(name = "dep_id", columnDefinition = "INT DEFAULT 0")
    @ApiModelProperty(name = "depId", value = "组织机构id")
    private int depId;
    /**
     * 组织机构名称
     */
    @Column(name = "dep_name")
    @ApiModelProperty(name = "depName", value = "组织机构名称")
    private String depName = "";

    /**
     * 总期号
     */
    @Column(name = "bulletin_total", columnDefinition = "INT DEFAULT 0")
    @ApiModelProperty(name = "bulletinTotal", value = "公报年份")
    private int bulletinTotal = 0;

    /**
     * 公报年份
     */
    @Column(name = "bulletin_year", columnDefinition = "INT DEFAULT 0")
    @ApiModelProperty(name = "bulletinYear", value = "公报年份")
    private int bulletinYear = 0;
    /**
     * 公报期号
     */
    @Column(name = "bulletin_num", columnDefinition = "INT DEFAULT 0")
    @ApiModelProperty(name = "bulletinNum", value = "公报期号")
    private int bulletinNum = 0;

    /**
     * 新闻标签，不入库，只做查询展示用
     */
    @Transient
    private String label = "";
    /**
     * 备用字段1
     */
    @Column(name = "str0")
    @ApiModelProperty(name = "str0", value = "备用字段")
    private String str0 = "";
    /**
     * 备用字段2
     */
    @Column(name = "str1")
    @ApiModelProperty(name = "str1", value = "备用字段")
    private String str1 = "";
    /**
     * 备用字段3
     */
    @Column(name = "str2")
    @ApiModelProperty(name = "str2", value = "备用字段")
    private String str2 = "";
    /**
     * 备用字段4
     */
    @Column(name = "str3")
    @ApiModelProperty(name = "str3", value = "备用字段")
    private String str3 = "";
    /**
     * 备用字段5
     */
    @Column(name = "str4")
    @ApiModelProperty(name = "str4", value = "备用字段")
    private String str4 = "";
    /**
     * 备用字段6
     */
    @Column(name = "str5")
    @ApiModelProperty(name = "str5", value = "备用字段")
    private String str5 = "";
    /**
     * 备用字段7
     *   2019年10月8日 wn启用 退回给上报系统填写退回原因
     */
    @Column(name = "str6")
    @ApiModelProperty(name = "str6", value = "备用字段")
    private String str6 = "";
    /**
     * 备用字段8
     * 2019年3月28日 laiyy 启用：豫新发布，发布会状态。0：录播，1：直播
     */
    @Column(name = "str7")
    @ApiModelProperty(name = "str7", value = "备用字段")
    private String str7 = "";
    /**
     * 备用字段9
     */
    @Column(name = "str8")
    @ApiModelProperty(name = "str8", value = "备用字段")
    private String str8 = "";
    /**
     * 备用字段10
     */
    @Column(name = "str9")
    @ApiModelProperty(name = "str9", value = "备用字段")
    private String str9 = "";

    // TODO: 2018/10/22 laiyy 新增字段

    /**
     * 栏目标志位
     */
    @Column(name = "channel_mark_id")
    @ApiModelProperty(name = "channelMarkId", value = "栏目标志位", notes = "站点 id + 01 + 13 位时间戳 + 1 位随机数")
    private String channelMarkId;

    /**
     * 新闻细览模版标识位
     */
    @Column(name = "detail_mark_id")
    @ApiModelProperty(name = "detailMarkId", value = "细览模版标志位", notes = "站点 id + 02 + 13 位时间戳 + 1 位随机数")
    private String detailMarkId;

    @Column(name = "job_id")
    @ApiModelProperty(name = "jobId", value = "定时任务id", notes = "定时任务id")
    private String jobId;

    @Column(name = "is_create_re_num", columnDefinition = "TINYINT DEFAULT 0")
    @ApiModelProperty(name = "ifCreateReNum", value = "是否生成索引号", notes = "是否生成索引号 0 不生成 1 生成")
    private int ifCreateReNum;

    /**
     * 导入来源
     */
    @ApiModelProperty(name = "reportSource", value = "导入来源 10为上报系统")
    @Column(name = "report_source",columnDefinition = "INT DEFAULT 0")
    private int reportSource;

    /**
     * 导入原系统新闻id
     */
    @ApiModelProperty(name = "importNewsId", value = "导入原系统新闻id")
    @Column(name = "import_news_id",columnDefinition = "INT DEFAULT 0")
    private int importNewsId;


    @Column(columnDefinition = "INT DEFAULT 0")
    private int pv;
    @ApiModelProperty(name = "sharePic", value = "分享图标")
    @Column( name = "share_pic")
    private String sharePic;

    @ApiModelProperty(name = "detailType", value = "0 新闻，10 领导简历")
    @Column(name = "detail_type",columnDefinition = "INT DEFAULT 0")
    private int detailType;

    @Column(name = "old_entity_id")
    @ApiModelProperty(name = "oldEntityId", value = "十八地市老数据Id")
    private String oldEntityId;

    @Column(name = "small_type",columnDefinition = "INT DEFAULT 0")
    private int smallType;

//    @Column(name = "web_site_code")
//    private String websiteCode;

    @Column(name = "p_site_id")
    @ApiModelProperty(name = "pSiteId", value = "父站点ID(父站点唯一标识)")
    private String pSiteId;

    @Column(name = "import_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(name = "importDate", value = "导入时间")
    private Date importDate;


    @Lob
    @Basic(fetch = FetchType.EAGER)
    @Column(columnDefinition = "LONGTEXT")
    @ApiModelProperty(name = "content", value = "新闻内容", required = true)
    private String content = "";

    public News() {
    }
    /**
     * HQL_FIELDS
     */
    public News(int id, int delStatus, String title, String outUrl, String selfUrl, String source, String channelName,
                int type, String operatorName, Date operatorDate, Date pubDate, String focusPic1, String focusPic2, String focusPic3,
                int updown, int backNews, int newsWeigh, Date createDate, String subtitle, String summary, String reNum,
                String themeClassName, String docTypeName, String docNum, String docAgency, String themeWord, int bulletinTotal,
                int bulletinYear, int bulletinNum, String str0, String str1, String str2, String str3, String str4, String str5,
                String str6, String str7, String str8, String str9, int seq, Date beginTaskTime, Date endTaskTime, int status, int channelId,
                String author, int docType, int reportSource, Date writeDate) {
        this.id = id;
        this.delStatus = delStatus;
        this.title = title;
        this.outUrl = outUrl;
        this.selfUrl = selfUrl;
        this.source = source;
        this.channelName = channelName;
        this.type = type;
        this.operatorName = operatorName;
        this.operatorDate = operatorDate;
        this.pubDate = pubDate;
        this.focusPic1 = focusPic1;
        this.focusPic2 = focusPic2;
        this.focusPic3 = focusPic3;
        this.updown = updown;
        this.backNews = backNews;
        this.newsWeigh = newsWeigh;
        this.createDate = createDate;
        this.subtitle = subtitle;
        this.summary = summary;
        this.reNum = reNum;
        this.themeClassName = themeClassName;
        this.docTypeName = docTypeName;
        this.docNum = docNum;
        this.author = author;
        this.docAgency = docAgency;
        this.themeWord = themeWord;
        this.bulletinTotal = bulletinTotal;
        this.bulletinYear = bulletinYear;
        this.bulletinNum = bulletinNum;
        this.str0 = str0;
        this.str1 = str1;
        this.str2 = str2;
        this.str3 = str3;
        this.str4 = str4;
        this.str5 = str5;
        this.str6 = str6;
        this.str7 = str7;
        this.str8 = str8;
        this.str9 = str9;
        this.seq = seq;
        this.beginTaskTime = beginTaskTime;
        this.endTaskTime = endTaskTime;
        this.status = status;
        this.channelId = channelId;
        this.docType = docType;
        this.reportSource =reportSource;
        this.writeDate = writeDate;
    }

    /*
     *  HQL_FIELDS_ADD_DEP
     * */
    public News(int id, int delStatus, String title, String outUrl, String selfUrl, String source, String channelName,
                int type, String operatorName, Date operatorDate, Date pubDate, String focusPic1, String focusPic2, String focusPic3, int moreAudit,
                int updown, int backNews, int newsWeigh, Date createDate, String subtitle, String summary, String reNum,
                String themeClassName, String docTypeName, String docNum, String docAgency, String themeWord, int bulletinTotal,
                int bulletinYear, int bulletinNum, String str0, String str1, String str2, String str3, String str4, String str5,
                String str6, String str7, String str8, String str9, int seq, Date beginTaskTime, Date endTaskTime, int status, int channelId,
                String author, int docType, int reportSource, String depName) {
        this.id = id;
        this.delStatus = delStatus;
        this.title = title;
        this.outUrl = outUrl;
        this.selfUrl = selfUrl;
        this.source = source;
        this.channelName = channelName;
        this.type = type;
        this.operatorName = operatorName;
        this.operatorDate = operatorDate;
        this.pubDate = pubDate;
        this.focusPic1 = focusPic1;
        this.focusPic2 = focusPic2;
        this.focusPic3 = focusPic3;
        this.moreAudit = moreAudit;
        this.updown = updown;
        this.backNews = backNews;
        this.newsWeigh = newsWeigh;
        this.createDate = createDate;
        this.subtitle = subtitle;
        this.summary = summary;
        this.reNum = reNum;
        this.themeClassName = themeClassName;
        this.docTypeName = docTypeName;
        this.docNum = docNum;
        this.author = author;
        this.docAgency = docAgency;
        this.themeWord = themeWord;
        this.bulletinTotal = bulletinTotal;
        this.bulletinYear = bulletinYear;
        this.bulletinNum = bulletinNum;
        this.str0 = str0;
        this.str1 = str1;
        this.str2 = str2;
        this.str3 = str3;
        this.str4 = str4;
        this.str5 = str5;
        this.str6 = str6;
        this.str7 = str7;
        this.str8 = str8;
        this.str9 = str9;
        this.seq = seq;
        this.beginTaskTime = beginTaskTime;
        this.endTaskTime = endTaskTime;
        this.status = status;
        this.channelId = channelId;
        this.docType = docType;
        this.reportSource =reportSource;
        this.depName = depName;
    }
    /*
     * HQL_SEARCH
     */
    public News(int id, String title, String outUrl, String selfUrl, String source, int type,
                int updown, int backNews, Date createDate, String summary, int seq,
                Date beginTaskTime, int status, int channelId, String author) {
        this.id = id;
        this.title = title;
        this.outUrl = outUrl;
        this.selfUrl = selfUrl;
        this.source = source;
        this.type = type;
        this.updown = updown;
        this.backNews = backNews;
        this.createDate = createDate;
        this.summary = summary;
        this.seq = seq;
        this.beginTaskTime = beginTaskTime;
        this.status = status;
        this.channelId = channelId;
        this.author = author;
    }

    public News(int userId, int status, int delStatus, String title, String subtitle, String summary, Date createDate, Date writeDate, Date pubDate, Date beginTaskTime, Date endTaskTime, int type, int newsWeigh, int contentNumber, String siteId, int channelId, String channelName, int templateId, String source, String author, String keyword, String outUrl, String selfUrl, String focusPic1, String focusPic2, String focusPic3, int issuerId, String issuerName, int showStatus, int showRed, int showBold, int seq, String reNum, int openType, int themeClass, String themeClassName, int docType, String docTypeName, String docNum, String docAgency, String themeWord, int moreAudit, int clone, int mobile, String videoUrl, int backNews, int updown, int operatorUserId, String operatorName, Date operatorDate, int depId, String depName, int bulletinTotal, int bulletinYear, int bulletinNum, String label, String str0, String str1, String str2, String str3, String str4, String str5, String str6, String str7, String str8, String str9, String channelMarkId, String detailMarkId, String jobId, int ifCreateReNum, int reportSource, int importNewsId, int pv, String sharePic, int detailType) {
        this.userId = userId;
        this.status = status;
        this.delStatus = delStatus;
        this.title = title;
        this.subtitle = subtitle;
        this.summary = summary;
        this.createDate = createDate;
        this.writeDate = writeDate;
        this.pubDate = pubDate;
        this.beginTaskTime = beginTaskTime;
        this.endTaskTime = endTaskTime;
        this.type = type;
        this.newsWeigh = newsWeigh;
        this.contentNumber = contentNumber;
        this.siteId = siteId;
        this.channelId = channelId;
        this.channelName = channelName;
        this.templateId = templateId;
        this.source = source;
        this.author = author;
        this.keyword = keyword;
        this.outUrl = outUrl;
        this.selfUrl = selfUrl;
        this.focusPic1 = focusPic1;
        this.focusPic2 = focusPic2;
        this.focusPic3 = focusPic3;
        this.issuerId = issuerId;
        this.issuerName = issuerName;
        this.showStatus = showStatus;
        this.showRed = showRed;
        this.showBold = showBold;
        this.seq = seq;
        this.reNum = reNum;
        this.openType = openType;
        this.themeClass = themeClass;
        this.themeClassName = themeClassName;
        this.docType = docType;
        this.docTypeName = docTypeName;
        this.docNum = docNum;
        this.docAgency = docAgency;
        this.themeWord = themeWord;
        this.moreAudit = moreAudit;
        this.clone = clone;
        this.mobile = mobile;
        this.videoUrl = videoUrl;
        this.backNews = backNews;
        this.updown = updown;
        this.operatorUserId = operatorUserId;
        this.operatorName = operatorName;
        this.operatorDate = operatorDate;
        this.depId = depId;
        this.depName = depName;
        this.bulletinTotal = bulletinTotal;
        this.bulletinYear = bulletinYear;
        this.bulletinNum = bulletinNum;
        this.label = label;
        this.str0 = str0;
        this.str1 = str1;
        this.str2 = str2;
        this.str3 = str3;
        this.str4 = str4;
        this.str5 = str5;
        this.str6 = str6;
        this.str7 = str7;
        this.str8 = str8;
        this.str9 = str9;
        this.channelMarkId = channelMarkId;
        this.detailMarkId = detailMarkId;
        this.jobId = jobId;
        this.ifCreateReNum = ifCreateReNum;
        this.reportSource = reportSource;
        this.importNewsId = importNewsId;
        this.pv = pv;
        this.sharePic = sharePic;
        this.detailType = detailType;
    }

    public News(int id, int importNewsId) {
        this.id = id;
        this.importNewsId = importNewsId;
    }
}
